package woyou.aidlservice.jiuiv5;

import woyou.aidlservice.jiuiv5.ICallback;
import woyou.aidlservice.jiuiv5.ITax;
import android.graphics.Bitmap;
import com.sunmi.trans.TransBean;

interface IWoyouService{
    boolean postPrintData(String packageName, in byte[] data, int offset, int length);
	int getFirmwareStatus();
	String getServiceVersion();
	void printerInit(in ICallback callback);
	void printerSelfChecking(in ICallback callback);
	String getPrinterSerialNo();
	String getPrinterVersion();
	String getPrinterModal();
	void getPrintedLength(in ICallback callback);
	void lineWrap(int n, in ICallback callback);
	void sendRAWData(in byte[] data, in ICallback callback);
	void setAlignment(int alignment, in ICallback callback);
	void setFontName(String typeface, in ICallback callback);
	void setFontSize(float fontsize, in ICallback callback);
	void printText(String text, in ICallback callback);
	void printTextWithFont(String text, String typeface, float fontsize, in ICallback callback);
	void printColumnsText(in String[] colsTextArr, in int[] colsWidthArr, in int[] colsAlign, in ICallback callback);
	void printBitmap(in Bitmap bitmap, in ICallback callback);
	void printBarCode(String data, int symbology, int height, int width, int textposition,  in ICallback callback);
	void printQRCode(String data, int modulesize, int errorlevel, in ICallback callback);
	void printOriginalText(String text, in ICallback callback);
	void commitPrint(in TransBean[] transbean, in ICallback callback);
	void commitPrinterBuffer();
	void enterPrinterBuffer(in boolean clean);
	void exitPrinterBuffer(in boolean commit);
	void tax(in byte [] data,in ITax callback);
	void getPrinterFactory(in ICallback callback);
	void clearBuffer();
	void commitPrinterBufferWithCallback(in ICallback callback);
	void exitPrinterBufferWithCallback(in boolean commit, in ICallback callback);
	void printColumnsString(in String[] colsTextArr, in int[] colsWidthArr, in int[] colsAlign, in ICallback callback);
	int updatePrinterState();
    void printBitmapCustom(in Bitmap bitmap, in int type, in ICallback callback);
    int getForcedDouble();
    boolean isForcedAntiWhite();
    boolean isForcedBold();
    boolean isForcedUnderline();
    int getForcedRowHeight();
    int getFontName();
}